import React, { ReactNode } from 'react';
import { ConfigProvider } from './ConfigContext';
import { MCPProvider } from './MCPContext';
import { AgentProvider } from './AgentContext';
import { ChatProvider } from './ChatContext';

interface AppProvidersProps {
  children: ReactNode;
}

export function AppProviders({ children }: AppProvidersProps) {
  return (
    <ConfigProvider>
      <MCPProvider>
        <AgentProvider>
          <ChatProvider>
            {children}
          </ChatProvider>
        </AgentProvider>
      </MCPProvider>
    </ConfigProvider>
  );
}
